let mongoose = require("mongoose")

//连接数据库
mongoose.connect("mongodb://localhost/biquge_book_request", {
        useNewUrlParser: true 
    })
    .then(() => {
        console.log("连接数据库成功")
    })
    .catch(err => {
        console.log("连接数据库失败")
    })
